import React,{Component} from 'react'
export default class Welcome extends Component{
    constructor(props){
    super(props)
    }
    // 设置默认值
    static defaultProps={
     count:1,
     place:"中国",
     name:"林杏"
    }
    render(){
        return (
            <div style={{border:'solid 5px red'}}>
               欢迎 {this.props.name}第 {this.props.count}次来到{this.props.place}
            </div>
        )
    }
}